package com.sky.properties;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author majun
 * @package com.sky.properties
 * @date 2024/12/18 22:41
 */

@Component
@ConfigurationProperties(prefix = "sky.snowflake")
@Data
public class SnowflakeIdWorkerProperties {

    /**
     * 工作机器ID
     */
    private int workerId;

    /**
     * 数据中心ID
     */
    private int dataCenterId;

}
